﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Neotic.DataAccess.Sql
{
    public class Table : RowCollection
    {
        internal  Table (string schema, string name)
        {
            this.Schema = schema;
            this.Name = name;
        }

        public override bool CanWrite
        {
            get { return true; }
        }

        public override bool IsSameTable(IRowCollection t)
        {
            if (!(t is Table))
                return false;

            return (this.AliasName.Equals(((Table)t).AliasName) &&
                    this.FullName.Equals(((Table)t).FullName));
        }
    }
}
